﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.InventoryDomain
{
   public class Batch
    {
        #region Properties
        public Guid ID { get; set; }
        public string Code { get; set; }
        public string Title { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public int BatchTypeID { get; set; }
        public int BatchStatusID { get; set; } 
        #endregion

        #region NavigationalProperties
       [ForeignKey("BatchTypeID")]
        public virtual BatchType BatchType { get; set; }
       [ForeignKey("BatchStatusID")]
        public virtual BatchStatus Status { get; set; }
        public virtual ICollection<Item> Items { get; set; }
        public virtual ICollection<InventoryVoucher> Vouchers { get; set; }
        #endregion
    }
}
